package com.yunhe.sms.view;

import com.yunhe.sms.control.LoginController;

import java.util.Scanner;

/**
 * Created by Administrator on 2017/8/7 0007.
 */
public class AdminHome {
    public static int adminHomeUI(){
        Scanner sc = new Scanner(System.in);
        System.out.println("********************学员信息管理系统-"+ LoginController.getCurrUser().getRealName()+"********************");
        System.out.println("1.讲师管理");
        System.out.println("2.账号管理");
        System.out.println("3.退出系统");
        System.out.print("请输入操作序号:");

        try{
            int i = sc.nextInt();
            return i;
        }catch (Exception e){
            System.out.println("输入不合法！");
            return adminHomeUI();
        }
    }
}
